import {EntityId, PageQueryParams} from "kf-web-library";
import {Journal_Summary} from "@/services";

export interface FrontJournalPeriodPageQueryParams extends Partial<PageQueryParams> {
  searchText?: string;
  ids?: EntityId[];
  journalId?: EntityId;  //所属期刊
  year?: number;  //年
}

export interface FrontJournalPeriod {
  id: EntityId; //主键
  journal: Journal_Summary; //期刊
  journalLogoName: string; //LOGO名称
  journalLogoPath: string; //LOGO路径
  journalLogoSize: string; //LOGO大小
  journalCoverName: string; //封面名称
  journalCoverPath: string; //封面路径
  journalCoverSize: string; //封面大小
  periodName: string; //分期名称
  periodStartDate: string; //分期开始日期
  periodEndDate: string; //分期结束日期


  hitsnum: number; //点击数量
  sharenum: number; //转发数量
  likesnum: number; //点赞数量
  collectionnum: number; //收藏数量
  haslikes: boolean; //是否被当前用户点赞
  hascollection: boolean; //是否被当前用户收藏


  year: number;
  volume: string;
  period: string;
}


export interface JournalPeriod_Summary {
  id: number; //主键
  periodName: string; //分期名称
}


export interface JournalPeriod_Sta {
  journalId: number; //刊期ID
  year: number; //年
  periodNum: string; //年刊期数量
}




